package com.nhjf.model.system;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.nhjf.model.BaseModel;

@Entity
@Table(name = "adminSession")
public class AdminSession extends BaseModel {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@Id
	@Column(name = "id", unique = true)
	private String id;
	
	/**
	 * token
	 */
	@Column(name = "token")
	private String token;
	
	/**
	 * 有效期
	 */
	@Column(name = "expiryTime")
	private Date expiryTime;
	
	/**
	 * 登录ID
	 */
	@Column(name = "loginName")
	private String loginName;

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Date getExpiryTime() {
		return expiryTime;
	}

	public void setExpiryTime(Date expiryTime) {
		this.expiryTime = expiryTime;
	}


}
